#ifndef PLAYSCENE_H
#define PLAYSCENE_H

#include "mypushbutton.h"
#include "mycoin.h"
#include "dataconfig.h"

#include <QTimer>
#include <QPainter>
#include <QMainWindow>
#include <QDebug>
#include <QMenu>
#include <QAction>
#include <QMenuBar>
#include <QLabel>
#include <QFont>
#include <QString>
#include <QPropertyAnimation>
#include <QSound>

class PlayScene : public QMainWindow
{
    Q_OBJECT
public:
    explicit PlayScene(QWidget *parent = nullptr);

      bool isWin = true; //是否胜利

    //成员变量 记录关卡索引
    int levalIndex;

    MyCoin * coinBtn[4][4]; //金币按钮数组

    // 重载构造函数
    PlayScene(int index);

    int gameArray[4][4]; //二维数组数据

protected:
    void paintEvent(QPaintEvent *event);

signals:
    // 自定义信号
    void chooseSceneBack();
};

#endif // PLAYSCENE_H
